import { request } from '@/plugins/request'


// 获取用户信息
export const getProfile = params => {
  return request({
    method: 'GET',
    url: `/profiles/${params}`
  })
}
// 关注作者
export const followUser = params => {
  return request({
    method: 'POST',
    url: `/profiles/${params}/follow`
  })
}
// 取消关注作者
export const unFollowUser = params => {
  return request({
    method: 'DELETE',
    url: `/profiles/${params}/follow`
  })
}